[INFO] cloning repository https://github.com/clicepfl/rust-workshop-exercises
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/clicepfl/rust-workshop-exercises" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fclicepfl%2Frust-workshop-exercises", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fclicepfl%2Frust-workshop-exercises'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] cdff66f5b3d11fff41bfb0b2fcdd6e70677198fa
[INFO] fixing clicepfl/rust-workshop-exercises against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fclicepfl%2Frust-workshop-exercises" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/clicepfl/rust-workshop-exercises
[INFO] finished tweaking git repo https://github.com/clicepfl/rust-workshop-exercises
[INFO] tweaked toml for git repo https://github.com/clicepfl/rust-workshop-exercises written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/clicepfl/rust-workshop-exercises on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/clicepfl/rust-workshop-exercises already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 3359bb8a90ddfe1bf282efcde914621f50003c116a08c1b44c62d0e815a0f4ee
[INFO] running `Command { std: "docker" "start" "3359bb8a90ddfe1bf282efcde914621f50003c116a08c1b44c62d0e815a0f4ee", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "3359bb8a90ddfe1bf282efcde914621f50003c116a08c1b44c62d0e815a0f4ee" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3359bb8a90ddfe1bf282efcde914621f50003c116a08c1b44c62d0e815a0f4ee", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "3359bb8a90ddfe1bf282efcde914621f50003c116a08c1b44c62d0e815a0f4ee" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]     Checking rust-workshop-exercises v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions
[INFO] [stdout]  --> examples/ex_ownership.rs:4:22
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn sum(elements: _) -> i64 {
[INFO] [stdout]   |                      ^ not allowed in type signatures
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]  --> examples/ex_ownership.rs:9:23
[INFO] [stdout]   |
[INFO] [stdout] 9 |     for (idx, val) in elements.iter().enumerate() {
[INFO] [stdout]   |                       ^^^^^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
[INFO] [stdout]  --> examples/ex_ownership.rs:8:46
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub fn slice_after_n(elements: _, n: i64) -> _ {
[INFO] [stdout]   |                                              ^ not allowed in type signatures
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> examples/ex_ownership.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 |     a.append(&mut b);
[INFO] [stdout]    |     ^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
[INFO] [stdout]   --> examples/ex_ownership.rs:18:37
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub fn merge(mut a: _, mut b: _) -> _ {
[INFO] [stdout]    |                                     ^ not allowed in type signatures
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0121, E0282.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0121`.
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `name`
[INFO] [stdout]   --> examples/ex_error.rs:28:16
[INFO] [stdout]    |
[INFO] [stdout] 28 |     pub fn new(name: String, initial_funds: u64) -> Result<Self, Error> {
[INFO] [stdout]    |                ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `initial_funds`
[INFO] [stdout]   --> examples/ex_error.rs:28:30
[INFO] [stdout]    |
[INFO] [stdout] 28 |     pub fn new(name: String, initial_funds: u64) -> Result<Self, Error> {
[INFO] [stdout]    |                              ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_funds`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `amount`
[INFO] [stdout]   --> examples/ex_error.rs:33:28
[INFO] [stdout]    |
[INFO] [stdout] 33 |     pub fn take(&mut self, amount: u64) -> Result<(), Error> {
[INFO] [stdout]    |                            ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `amount`
[INFO] [stdout]   --> examples/ex_error.rs:38:27
[INFO] [stdout]    |
[INFO] [stdout] 38 |     pub fn put(&mut self, amount: u64) {
[INFO] [stdout]    |                           ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `name`
[INFO] [stdout]   --> examples/ex_error.rs:54:35
[INFO] [stdout]    |
[INFO] [stdout] 54 |     pub fn add_account(&mut self, name: String, initial_funds: u64) -> Result<(), Error> {
[INFO] [stdout]    |                                   ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `initial_funds`
[INFO] [stdout]   --> examples/ex_error.rs:54:49
[INFO] [stdout]    |
[INFO] [stdout] 54 |     pub fn add_account(&mut self, name: String, initial_funds: u64) -> Result<(), Error> {
[INFO] [stdout]    |                                                 ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_funds`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `name`
[INFO] [stdout]   --> examples/ex_error.rs:59:36
[INFO] [stdout]    |
[INFO] [stdout] 59 |     pub fn find_account(&mut self, name: &str) -> Result<&mut Account, Error> {
[INFO] [stdout]    |                                    ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `transactions`
[INFO] [stdout]   --> examples/ex_error.rs:65:41
[INFO] [stdout]    |
[INFO] [stdout] 65 |     pub fn process_transfers(&mut self, transactions: Vec<Transfer>) -> Result<(), Error> {
[INFO] [stdout]    |                                         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transactions`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-workshop-exercises` (example "ex_ownership") due to 5 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]  --> examples/ex_factorial.rs:4:19
[INFO] [stdout]   |
[INFO] [stdout] 4 | fn factorial_loop(mut input: i64) -> i64 {
[INFO] [stdout]   |                   ----^^^^^
[INFO] [stdout]   |                   |
[INFO] [stdout]   |                   help: remove this `mut`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "3359bb8a90ddfe1bf282efcde914621f50003c116a08c1b44c62d0e815a0f4ee", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3359bb8a90ddfe1bf282efcde914621f50003c116a08c1b44c62d0e815a0f4ee", kill_on_drop: false }`
[INFO] [stdout] 3359bb8a90ddfe1bf282efcde914621f50003c116a08c1b44c62d0e815a0f4ee
